(function (d, w) {
	var docEl = d.documentElement,resizeEvt = 'orientationchange' in w ? 'orientationchange' : 'resize',
	recalc = function () {
		var clientWidth = docEl.clientWidth;
		if (!clientWidth) return;
			docEl.style.fontSize = 100 * (clientWidth / 750) + 'px';
		};
		if (!d.addEventListener) return;
		w.addEventListener(resizeEvt, recalc, false);
		recalc();
})(document, window);
/*(function(win, doc) {
	function change() {
		doc.documentElement.style.fontSize = doc.documentElement.clientWidth / 640 * 100 + 'px';
	}
	change();
	win.addEventListener('resize', change, false);
})(window, document);*/